import React from 'react';
import { Router, Route, Switch } from 'dva/router';
// import IndexPage from './routes/IndexPage';
import List from './routes/List'
// import Login from './routes/login/login'
import User from './routes/user/User'
import Group from './routes/group/group'

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        {/*<Route path="/" exact component={ Login } />*/}
        <Route path="/list" exact component={List}/>
        <Route path="/user" exact component={User}/>
        <Route path="/group" exact component={Group}/>
      </Switch>
    </Router>
  );
}

export default RouterConfig;
